package com.chenshuang.dao;

import com.chenshuang.bean.Goods;

import java.util.List;

public class GoodsDao extends BasicDao<Goods> {

    public Goods queryGoods(String id) {
      return  querySingle("select * from goods where id = ?", Goods.class,id);
    }

    public List<Goods> queryAll() {
        List<Goods> goods = queryMore("select * from goods", Goods.class);
        return goods;
    }
}
